//
//  AXFQuestionCell.m
//  BeeQuick
//
//  Created by 王誉升 on 2016/11/24.
//  Copyright © 2016年 six_group. All rights reserved.
//

#import "AXFQuestionCell.h"
#import "AXFQuestionModel.h"

@interface AXFQuestionCell()

@property (nonatomic,weak) UILabel *textL;

@end

@implementation AXFQuestionCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self setupUI];
    }
    return self;
}

- (void)setupUI
{
    UILabel *textLabel = [[UILabel alloc]init];
    
    textLabel.font = [UIFont systemFontOfSize:14];
    
    textLabel.textColor = [UIColor blackColor];
    
    [self.contentView addSubview:textLabel];
    
    textLabel.numberOfLines = 0;
    
    _textL = textLabel;
    
    textLabel.text = @"perfect";
    
    [textLabel mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.top.left.equalTo(self.contentView).offset(5);
        
        make.right.equalTo(self.contentView).offset(-5);
        
    }];
}

- (void)setModel:(AXFQuestionModel *)model
{
    _model = model;
    
    _textL.text = model.text;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
